import http from "@/axios/index.js";
import { handleError, handleSuccess } from "@/utils/responseHandler.js";

export const AuthApi = {
   
    getAuthInfo: () => http.get('auth/info')
        .then(res => handleSuccess(res, '获取当前用户信息'))
        .catch(error => handleError(error, '获取当前用户信息', '获取当前用户信息失败')),

}